import request from './request.js'
/**
 * 注册接口
 * @params username { string }
 * @params password { string }
 */
export const RegisterApi = (params) => request.post('/api/register', params)

// 登录接口 参数同上
export const loginApi = (params) => request.post('/api/login', params)